<?php

class VMenu{
	public function __construct() {
        
         ?>
         
 <div id="menu-wrapper">
        <div id="menu">
                <ul>
                 <?php
                 if (isset($_SESSION['login'])) {
                        
                        echo '<li><a href="index.php?do=afficher"/>Afficher les stocks</a></li>';
                        echo '<li><a href="index.php?do=modifier"/>Modifier les stocks</a></li>';
                        echo '<li><a href="index.php?do=deconnexion"/>Se deconnecter</a></li>';
                 }
                 else {
                 	echo '<li><a href="index.php?do="/>Se connecter</a></li>';
                 }

                ?>
                </ul>
        </div>
</div>
<div id="page">
    <div id="page-bgtop">
        <div id="page-bgbtm">
                <div id="page-content">
                        <div id="content">
                                <div class="post">
        <?php        
        
    }
}
?>
